package org.nstack.header.network.l2;

import org.nstack.header.message.APIEvent;
import org.nstack.header.rest.RestResponse;


@RestResponse(allTo = "inventory")
public class APICreateL2VlanNetworkEvent extends APIEvent {

    private L2VlanNetworkInventory inventory;

    public APICreateL2VlanNetworkEvent(String apiId) {
        super(apiId);
    }

    public APICreateL2VlanNetworkEvent() {
        super(null);
    }

    public L2VlanNetworkInventory getInventory() {
        return inventory;
    }

    public void setInventory(L2VlanNetworkInventory inventory) {
        this.inventory = inventory;
    }
 
    public static APICreateL2VlanNetworkEvent __example__() {
        APICreateL2VlanNetworkEvent event = new APICreateL2VlanNetworkEvent();
        L2VlanNetworkInventory net = new L2VlanNetworkInventory();

        net.setName("Test-Net");
        net.setVlan(10);
        net.setDescription("Test");
        net.setZoneUuid(uuid());
        net.setPhysicalInterface("eth0");
        net.setType("L2VlanNetwork");

        event.setInventory(net);
        return event;
    }

}
